﻿
using DG.Tweening;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// UI动画的基类
/// </summary>
public abstract  class UIShowBase : MonoBehaviour {
    protected Nodeal nodeal;//panel的种类
    protected Tweener tweener;//动画类型
    public abstract void CreatTweener();
    public virtual void Start()
    {
        UIshower.Instance.InitDotween(nodeal,tweener);
    }
    public void Set()
    {
        UIshower.Instance.StartPlay(nodeal);
    }
    public void Return()
    {
        UIshower.Instance.RecPlay(nodeal);
    }
}
